""" 
用户模块URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views, api_views

# REST API路由
router = DefaultRouter()
router.register(r'', api_views.UserViewSet, basename='user')

app_name = 'users'

urlpatterns = [
    # 传统视图（用于模板渲染）
    path('list/', views.user_list, name='user_list'),
    path('detail/<int:user_id>/', views.user_detail, name='user_detail'),
]
